package com.gtq.uhome.controller;


import com.gtq.uhome.result.Result;
import com.gtq.uhome.service.UserPortOrderInforService;
import com.gtq.uhome.vo.OrderInforBase;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.*;

import javax.annotation.Resource;
import java.util.Map;

/**
 * @author ylhy
 * @Describe
 * @create 2020-08-10 10:29
 */
@Controller
@RequestMapping("/UserPortOrderInfor")
@Api(value = "用于用户订单详情",tags = "前台用户--->用户顶单详情api-->饶平")
@ResponseBody
@CrossOrigin
public class UserPortOrderInforController {

    @Resource
    UserPortOrderInforService userPortOrderInforService;

    @PostMapping("/userOrderInforWaitDe")
    @ApiOperation(value = "用户订单待配送详情",notes = "前端必须传订单id",httpMethod =
            "POST")
    public Result userOrderInfor(@RequestBody Map<String,String> map){
        OrderInforBase userOrderInfor = userPortOrderInforService.userOrderInfor(map);
        return Result.ok(userOrderInfor);
    }




}
